package com.timoon.component.panel.grid.panel;

import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

import com.timoon.component.panel.grid.GridService;
import com.timoon.component.panel.grid.actions.SaveButton;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public class AddPanel extends Panel {
	
	public AddPanel(String id,GridService service,ModalWindow window) {
		super(id);
		// TODO Auto-generated constructor stub
		
		Form form=new Form("wk_form");
		this.add(form);
		
		TextField<String> t0=new TextField<>("wk_text0",new Model<String>());
		form.add(t0);
		TextField<String> t1=new TextField<>("wk_text1",new Model<String>());
		form.add(t1);
		TextField<String> t2=new TextField<>("wk_text2",new Model<String>());
		form.add(t2);
		TextField<String> t3=new TextField<>("wk_text3",new Model<String>());
		form.add(t3);
		
		form.add(new SaveButton("wk_save",service,window,t0,t1,t2,t3));
	}

}
